import { CommandMoveTo } from "./base";
import Insert from "../insert";

@Insert
export class CommandMoveToMoster extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路明怪"
        this.tags.push("明怪", "怪物")
        this.detail = "寻路[明怪,$怪物$]"
        this.insert = "寻路[明怪,${1:怪物}]"
        this.docs = ""
    }
}

@Insert
export class CommandMoveToNpc extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路NPC"
        this.tags.push("NPC", "Npc", "npc")
        this.detail = "寻路[NPC,$名字]"
        this.insert = "寻路[NPC,${1:名字}]"
        this.docs = ""
    }
}

@Insert
export class CommandMoveToSubmitTaskNpc extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路交任务NPC"
        this.tags.push("NPC", "Npc", "npc", "任务", "交任务", "完成")
        this.detail = "寻路[任务,$任务$,交任务NPC]"
        this.insert = "寻路[任务,${1:任务},交任务NPC]"
        this.docs = ""
    }
}

@Insert
export class CommandMoveToTargetNpc extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路目标NPC"
        this.tags.push("NPC", "Npc", "npc", "任务", "目标", "完成")
        this.detail = "寻路[任务,$任务$,目标NPC]"
        this.insert = "寻路[任务,${1:任务},目标NPC]"
        this.docs = ""
    }
}

@Insert
export class CommandMoveToTimerTargetNpc extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路限时任务目标NPC"
        this.tags.push("NPC", "Npc", "npc", "任务", "目标", "完成", "限时任务")
        this.detail = "寻路[任务,$任务$,限时任务目标NPC]"
        this.insert = "寻路[任务,${1:任务},限时任务目标NPC]"
        this.docs = ""
    }
}

@Insert
export class CommandMoveToTarget extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路"
        this.detail = "寻路[$地图$,$x$,$y$]"
        this.insert = "寻路[${1:地图},${2:x},${3:y}]"
        this.docs = "前往指定坐标:\n1.寻路[京城,100,100]\n2.寻路[68,1560,1580]"
    }
}

@Insert
export class CommandMoveToFlyDoor extends CommandMoveTo {
    constructor() {
        super()
        this.name = "寻路(传送门)"
        this.tags.push("传送门")
        this.detail = "寻路[传送门,$当前地图$,$cx$,$cy$,$tx$,$ty$,$目标地图$]"
        this.insert = "寻路[传送门,${1:地图},${2:cx},${3:cy},${4:tx},${5:ty},${6:目标}]"
        this.docs = "设置两对坐标,在两对坐标循环来回移动,直到进入目标地图为止.可以使用汉字名称或者地图ID.\n1.寻路[传送门,意气盟,100,100, 200,200,鬼灯坊市]\n2.寻路[传送门,68,1200,1200,1500,1500,69]"
    }
}